package com.example.springaop.Controller;

import javafx.application.Application;
import org.springframework.boot.SpringApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;
@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/func1")
    public String func1(){
        return "我是一号方法";
    }
    @RequestMapping("/func2")
    public String func2(){
        int a=1;
        int b=2;
        int c=a+b;
        return "我是二号方法"+c;
    }
    @RequestMapping("/func3")
    public String func3(){
        return "我是二号方法"+ UUID.randomUUID().toString();
    }




}
